package org.objective.base;


/**
 *
 * @author gus
 */
public abstract class BaseView extends BaseDomainObject
{
    private final BaseObject  owner;
    private String  description;
    private boolean defaultView;

    protected BaseView(Storage storage, long id, BaseObject owner)
    {
        super(storage, id);
        this.owner = owner;
    }

    public abstract void draw(MapCanvas canvas);

    public BaseObject getOwner()
    {
        return owner;
    }

    public boolean isDefaultView()
    {
        return defaultView;
    }

    public void setDefaultView(boolean defaultView)
    {
        this.defaultView = defaultView;
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }
}
